require 'semantictext/document'

module SemanticText
  
  class Bullet < Paragraph
    attr_reader :depth
    def initialize(text, depth, rich_text_parser)
      super()
      @depth = depth
      rich_text_parser.parse(text, self)
    end
    
    #export as html
    def export_html
      result =  "<li>"
      content.each {|element| result+=element.export_html }
      result += "</li>"
    end
	
  end

end
